package com.fh.controller;

import com.fh.model.Orders;
import com.fh.model.vo.ShoppingCartVO;
import com.fh.service.OrderAddService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("order")
public class OrderAddController {


    @Resource
    private OrderAddService orderAddService;

    @PostMapping("add")
    public List<ShoppingCartVO>  addOrder(@RequestBody Orders orders,@RequestParam("cids") String cids){
        return  orderAddService.addOrder(cids,orders);
    }



}
